# Use an official Python runtime as a parent image
FROM python

# Set the working directory to /app
WORKDIR /app

# Copy the current directory contents into the container at /app
COPY bookshop /app

# Install any needed packages specified in requirements.txt
RUN pip install -r requirements.txt

# Make port 80 available to the world outside this container
EXPOSE 8088

# Define environment variable
# 在k8s中定义mysql的环境变量
# MYSQL_HOST MYSQL_PORT MYSQL_USER MYSQL_PWD MYSQL_DB

# Run app.py when the container launches
CMD ["python", "app.sh"]



